package wsz.rocketMq.service;

import com.alibaba.fastjson.JSONObject;
import wsz.rocketMq.entity.Phone;

import java.util.List;

/**
 *
 */
public interface PhoneService {

    Phone findById(Long id);

    /**
     * 秒杀
     * @param id
     * @return
     */
    JSONObject kill(Long id);

    List<Phone> findAll();
}
